package com.cc.gulimall.product.feign.fallback;


import com.cc.common.exception.BizCodeEnume;
import com.cc.common.utils.R;
import com.cc.gulimall.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <p>Title: SecKillFeignServiceFalback</p>
 * Description：
 * date：2020/7/10 16:03
 */
@Slf4j
@Component
public class SecKillFeignServiceFalback implements SeckillFeignService {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("触发熔断");
        System.out.println("触发熔断");
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
